<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-packmodel-edit" th:object="${tbCellPackmodel}">
            <input name="modelId" th:field="*{modelId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池组型号名称：</label>
                <div class="col-sm-8">
                    <input name="modelName" th:field="*{modelName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池组型号编号：</label>
                <div class="col-sm-8">
                    <input name="modelCode" th:field="*{modelCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池品牌：</label>
                <div class="col-sm-8">
                    <input name="cellCard" th:field="*{cellCard}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">BMS版本号：</label>
                <div class="col-sm-8">
                    <input name="bmsOrder" th:field="*{bmsOrder}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">BMS厂商：</label>
                <div class="col-sm-8">
                    <input name="bmsCompany" th:field="*{bmsCompany}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池箱串并联方式：</label>
                <div class="col-sm-8">
                    <select name="boxType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池箱个数：</label>
                <div class="col-sm-8">
                    <input name="boxCount" th:field="*{boxCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">生产厂商名称：</label>
                <div class="col-sm-8">
                    <input name="companyName" th:field="*{companyName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池组型号性能参数：</label>
                <div class="col-sm-8">
                    <input name="powerId" th:field="*{powerId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所含电池包型号参数：</label>
                <div class="col-sm-8">
                    <input name="boxId" th:field="*{boxId}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/packmodel";
        $("#form-packmodel-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-packmodel-edit').serialize());
            }
        }
    </script>
</body>
</html>